/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.hanhpt.btvn1;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class Bai1M2 
{
    public static void main(String[] args) 
    {

        Scanner sc=new Scanner(System.in);
        int n;
        n=sc.nextInt();
        int[] a=new int[100];
        int i;
        for( i=1;i<=n;i++)
            a[i]=sc.nextInt();
        for( i=1;i<=n;i++)
            for(int j=i+1;j<=n;j++)
                if(a[i]>a[j])
                {
                    int tmp=a[i];
                    a[i]=a[j];
                    a[j]=tmp;
                }
        System.out.println("mang da sap xep la ");
        for(i=1;i<=n;i++)
        System.out.print(a[i]+" ");
    }
}
